home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
ici
/
ici.cpi
/
struct.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-27
|
475b
|
25 lines
#ifndef ICI_STRUCT_H
#define ICI_STRUCT_H
#ifndef ICI_OBJECT_H
#include "object.h"
#endif
struct slot
{
object_t *sl_key;
object_t *sl_value;
};
struct structs
{
object_t o_head;
int s_nels; /* How many slots used. */
int s_nslots; /* How many slots allocated. */
struct_t *s_super; /* The super of this struct, may be NULL. */
slot_t *s_slots;
};
#define structof(o) ((struct_t *)(o))
#define isstruct(o) ((o)->o_tcode == TC_STRUCT)
#endif